
# log_test :test/log_test.c thirdpart/log/log.h thirdpart/log/log.c
# 	-gcc $^ -o $@ -Ithirdpart
# 	./$@
# 	-rm $@

log := thirdpart/log/log.h thirdpart/log/log.c
CC :=gcc
log_test :test/log_test.c $(log)
	-$(CC) $^ -o $@ -I thirdpart
	./$@
	-rm $@



app_common := app/app_common.h app/app_common.c
app_common_test :test/app_common_test.c $(app_common) $(log)
	-$(CC) $^ -o $@ -I thirdpart -I app
	./$@
	-rm $@


app_buffer := app/app_buffer.h app/app_buffer.c
app_buffer_test :test/app_buffer_test.c $(app_buffer) $(log)
	-$(CC) $^ -o $@ -I thirdpart -I app
	./$@
	-rm $@